//
//  ClientCell.m
//  BCVersion
//
//  Created by 吴 崧 on 14-2-23.
//  Copyright (c) 2014年 Jungle. All rights reserved.
//

#import "ClientCell.h"
#import <SDWebImage/UIImageView+WebCache.h>
@implementation ClientCell

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // Initialization code
    }
    return self;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}



-(void)configWithModel:(ManagerSearchedModel *)model
               KeyWord:(NSString *)keyWord
{
    self.avatarIcon.image = nil;
    self.nameLabel.text = nil;
    self.bankLabel.text = nil;
    self.messageLabel.text = nil;
    self.keyWordLabel.text = nil;
    self.scoreImage.image = nil;
    [self.avatarIcon setImageWithURL:[NSURL URLWithString:model.avatar] placeholderImage:nil];
    self.nameLabel.text = model.username;
    self.bankLabel.text = [model.bank componentsJoinedByString:@" "];
    self.workTypeLabel.text = [model.workType componentsJoinedByString:@" "];
    self.messageLabel.text = model.message;
    self.keyWordLabel.text = [NSString stringWithFormat:@"关键字:%@",keyWord];
    [self.scoreImage setScore:model.score.floatValue Large:NO];
}



@end
